package selenium;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeSuite;

public class SeleniumBase {

	public static WebDriver driver;	
	
	
	
	@BeforeSuite
	public void setUp()
	{
	 	driver = new HtmlUnitDriver();
	 	Page.setDriver(driver);
		//driver = new FirefoxDriver();
		driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);		
	}
	
	@AfterSuite
	public static void tearDown() throws Exception {
		driver.quit();
		Page.setDriver(null);
	}	
}
